﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Services;
namespace ActionServices
{
    public interface IvwusersActionService
    {
      
        CoreData.vwusers GetByID(long _id);
        IList<CoreData.vwusers> GetList();
        IList<CoreData.vwusers> GetListByLINQ(Func<CoreData.vwusers, Boolean> _where);
        CoreData.vwusers GetOneByLINQ(Func<CoreData.vwusers, Boolean> _where);
        IList<CoreData.vwusers> GetList(string _searchstring);
  
    }
   public class vwusersActionService:IvwusersActionService
    {
       vwusersService Service;
       public vwusersActionService()
       {
           Service = new vwusersService();
       }
       public virtual CoreData.vwusers GetByID(long _id)
        {
            return Service.GetByID(_id);
        }

       public virtual IList<CoreData.vwusers> GetList()
        {
            return Service.GetList();
        }

       public virtual IList<CoreData.vwusers> GetListByLINQ(Func<CoreData.vwusers, Boolean> _where)
        {
            return Service.GetListByLINQ(_where);
        }

       public virtual CoreData.vwusers GetOneByLINQ(Func<CoreData.vwusers, Boolean> _where)
        {
            return Service.GetOneByLINQ(_where);
        }

       public virtual IList<CoreData.vwusers> GetList(string _searchstring)
        {
            return Service.GetList(_searchstring);
        }

    }
}
